mobileAdSetVisible
Type
command
Summary
Specifies whether an ad can be seen or is hidden.
Syntax
mobileAdSetVisible <ad>, <visible>
Description
Use the mobileAdSetVisible command to set the visibility of an ad created using the mobileAdCreate command.
Parameters
Name | Type | Description |
---|---|---|
ad | The name of the ad. | |
visible | boolean | True to set the ad to visible, false to make the ad invisible. |
Examples
-- Show banner advert
mobileAdSetVisible "bannerAd", true
if mobileAdGetVisible("bannerAd") is true then
mobileAdSetVisible "bannerAd", false
end if
Related
command: mobileAdCreate, mobileAdRegister, mobileAdSetTopLeft
function: mobileAdGetTopLeft, mobileAdGetVisible, mobileAds
message: adLoaded, adLoadFailed, adClicked
Compatibility and Support
Introduced
LiveCode 5.5
OS
ios
android
Platforms
mobile